home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-10-24 | 2.1 KB | 62 lines | [TEXT/CCL2] |
- (in-package :oou)
- (provide :oou-u)
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; oou-u.Lisp
- ;;
- ;; Copyright © 1991 Northwestern University Institute for the Learning Sciences
- ;; All Rights Reserved
- ;;
- ;; author: Michael S. Engber
- ;;
- ;; utilities for oodles-of-utils
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (export '(compile-oou de-compile-oou
- ))
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- #|
-
- This whole compiling facility need re-writing, perhaps using defsystem.
- For now your best off starting with no .fasl's (de-compile-oou removes them)
- and then using compile-oou.
-
- It slow, it's tedious, but you should only have to do it once.
- (till a new version comes out)
-
- |#
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (defun compile-file-out-of-date (input-pathname &key
- (output-file (merge-pathnames ".fasl" input-pathname))
- (verbose *compile-verbose*)
- (print *compile-print*))
- (when (or (null (probe-file output-file))
- (< (file-write-date output-file) (file-write-date input-pathname)))
- (compile-file input-pathname :output-file output-file :verbose verbose :print print)))
-
- (defun compile-oou (&key (verbose *compile-verbose*)
- (print *compile-print*))
- (dolist (file (oou-source-files))
- (compile-file-out-of-date file :verbose verbose :print print)))
-
- (defun load-oou ()
- (dolist (file (oou-source-files))
- (load (make-pathname :name (pathname-name file)
- :directory (pathname-directory file))
- :verbose t)))
-
- (defun de-compile-oou ()
- (dolist (file (oou-source-files))
- (let ((fasl (merge-pathnames ".fasl" file)))
- (when (and (probe-file fasl) (delete-file fasl))
- (format t "deleted ~s~%" fasl)))))
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- #|
- (compile-oou :verbose t)
-
- (de-compile-oou)
-
- (load-oou)
- |#